home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d15 / filetest.arc / FILETEST.DOC < prev    next >
Text File  |  1992-01-04  |  3KB  |  91 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                 F I L E T E S T     0.01 Beta
  7.  
  8.  
  9.                 01/03/92
  10.  
  11.  
  12.                 By: Keith Luken
  13.  
  14.  
  15.                 PHANTASM BBS (908) 291-4134 USR DUAL V.32bis
  16.                              (908) 291-2302 USR DUAL V.32
  17.  
  18.  
  19.  
  20. This is a real simple utility that will return a DOS Errorlevel to
  21. correspond to the filename extension of the filename passed to
  22. FILETEST.EXE. This utility is a quick and dirty test that does NOT
  23. verify that the filename you pass is valid. It is assumed that
  24. whatever program or function calls this will have taken care of that.
  25. This program is by far the most extensive I have seen. Most test for
  26. the common compression extensions and possible .GIF. This utility tests
  27. for many more. It can be used to automate the placement of files based
  28. on their extension. While I'm sure that this release works on the
  29. extensions I have listed, I will add any extensions anyone would like and
  30. after a few months I'll release a finalized 1.00 version. Feel free to
  31. contact me with any extensions you would like added. I think I have covered
  32. a majority of extensions that most of your run into. This utility
  33. can be great for testing uploads on a BBS.
  34.  
  35.  
  36. *Remember when testing DOS Errorlevels in a batch file to test highest
  37.  numbers first!!
  38.  
  39.  
  40. Below is a list of the extensions tested for and the errorlevel they return:
  41.  
  42.             CASE "GIF"
  43.                 DOS Errorlevel = 1
  44.             CASE "ZIP"
  45.                  DOS Errorlevel = 2
  46.             CASE "ARC"
  47.                  DOS Errorlevel = 3
  48.             CASE "ARJ"
  49.                  DOS Errorlevel = 4
  50.             CASE "PAK"
  51.                  DOS Errorlevel = 5
  52.             CASE "ZOO"
  53.                  DOS Errorlevel = 6
  54.             CASE "LZH"
  55.                  DOS Errorlevel = 7
  56.             CASE "DWC"
  57.                  DOS Errorlevel = 8
  58.             CASE "BAT"
  59.                  DOS Errorlevel = 9
  60.             CASE "COM"
  61.                  DOS Errorlevel = 10
  62.             CASE "EXE"
  63.                  DOS Errorlevel = 11
  64.             CASE "BAK"
  65.                  DOS Errorlevel = 12
  66.             CASE "TXT"
  67.                  DOS Errorlevel = 13
  68.             CASE "DOC"
  69.                  DOS Errorlevel = 14
  70.             CASE "BAS"
  71.                  DOS Errorlevel = 15
  72.             CASE "C"
  73.                  DOS Errorlevel = 16
  74.             CASE "H"
  75.                  DOS Errorlevel = 17
  76.             CASE "BI"
  77.                 DOS Errorlevel = 18
  78.             CASE "INC"
  79.                 DOS Errorlevel = 19
  80.             CASE "PAS"
  81.                 DOS Errorlevel = 20
  82.             CASE "ASM"
  83.                 DOS Errorlevel = 21
  84.             CASE ELSE
  85.                 DOS Errorlevel = 90
  86.  
  87.             DOS Errorlevel = 98           'No Extension found
  88.  
  89.             DOS Errorlevel = 99           'No Filename Given found
  90.  
  91.